You can run external commands after each of your host print jobs have completed. On the Printer tab on the host printer session:
Windows example
On Windows platforms, you could specify the following:
"c:\tmp\file.* | lpr -o 1 -S server -P printer $<
"
where the following are used:
c:\tmp\file.*
" is the file that the print data is stored in. Host
On-Demand numerically increments the file name for each print job. In this example, the first
file will be named "file.000
", the next will be named
"file.001
", and so on.
lpr
" is an
external command;
-o l -S server -P printer
" are parameters for the
"lpr
" command;
lpr -o l -S server -P printer c:\tmp\file.000
".Linux example
On Linux, you could specify the following:
"/home/user/file.* | lpr -b -Pprinter $<
"
where the following are used:
/home/user/file.*
" is the file that the print data is stored in. Host
On-Demand numerically increments the file name for each print job. In this example, the first
file will be named "file.000
", the next will be named
"file.001
", and so on.lpr
" is an
external command;
-Pprinter
" are parameters for the
"lpr
" command;
If the created file contains binary formatting instructions such as escape sequences, it is important to send the file to the printer in binary mode. Make sure to check the correct command syntax prior to usage. |
-o l
" as in "lpr -o l
".
-b
" as in "lpr -b
".
Files are not erased even after the command execution has completed. You must either: |
c:\tmp\file.* | lpr -o l -S server -P printer $< && erase
$<
");The previous examples included the use of the lpr command. The lpr command allows you to send print jobs to printers shared by lpd if the lpr client software is installed.
The lpr client software is available on:
The lpr command accepts different parameters on the various operating systems. Check the lpr documenation of your operating system for the appropriate parameters.
By configuring an external command to run after print jobs, you can also print to a PPA printer (for example, the HP Desk Jet 700 series) from DOS. This procedure works for Windows NT 4.0 and Windows 98, whether you are directly connected to the printer or printing to a shared PPA printer with net use. You need to disable bidirectional communication and the launch Toolbox when printing features from the printer's configuration menu by following these steps:
HPFCFG14
and click OK. If HPFCFG14
does not work, try either
HPFCFG06
or HPFCFG13
.DSMEnable
parameter from either DSMEnable=0100
or
DSMEnable=0200
to DSMEnable=0000
.Now print the files using the Copy command to lpt1. For example,
copy file.prt lpt1